package com.hcbd.tdwt.base.hcbd;


import com.pangu.bdsdk2021.util.ExtensionProtocol;

public class HcbdProtocol extends ExtensionProtocol {


    public String setCCPRSInfo(CCPRSHcbdInfo ccprsInfo) {
        String s = "CCPRS," +
                ccprsInfo.receiving_address + "," +
                ccprsInfo.reserved_domain + "," +
                ccprsInfo.acquisition_frequency + "," +
                ccprsInfo.messages_number + "," +
                ccprsInfo.protocol_type;
        return this.packaging(s);
    }
    public String setBDddxInfo(BDddxInfo ccddsInfo) {
        String s = "CCDDS," +
                ccddsInfo.command + "," +
                ccddsInfo.type + "," +
                ccddsInfo.enable + "," +
                ccddsInfo.receiving_address + "," +
                ccddsInfo.frequency;
        return this.packaging(s);
    }
    public String queryBDddxInfo(String type) {
        String s = "CCDDS,0,"+type+",0,0,0";
        return packaging(s);
    }
}
